Correctness of Graph Programs Relative to HR + Conditions

نویسنده

  • Hendrik Radke
چکیده

In (Pennemann 2009), the correctness of graph programs relative to nested graph conditions is considered. Since these conditions are expressively equivalent to rst-order graph formulas, non-local graph properties in the sense of Gaifman are not expressible by nested graph conditions. We generalize the concept of nested graph conditions to socalled HR conditions and investigate the correctness for graph programs relative to these generalized conditions. Modeling of system states. As software systems increase in complexity, there is a growing need for design concepts that allow an intuitive overview of a system, usually by visual modeling techniques. Graph transformation systems are a visual modeling approach that emphasizes the interconnections of data structures. The states of a regarded real-world system are modeled by graphs, and changes to the system state are described by graph programs. Structural properties of the system are described by graph conditions. In [6], nested graph conditions are introduced. These conditions enhance rst-order logic on graphs with a graphical representation of the nodes and edges involved. Nested conditions are expressively equivalent to rst-order graph properties [10]. As such, they can express only local properties in the sense of Gaifman [4]. However, many real-world properties are non-local, i.e. they cannot be expressed by nested graph conditions. For instance, it is not possible to express the property there is a path from node 1 to node 2 , the connectedness or circlefreeness of a graph with these conditions, as these properties go beyond the kneighbourhood for any node and any xed k. Therefore, an extension is desired that can capture such properties. HR conditions. We propose to integrate hyperedge replacement systems with the nested graph conditions to form HR conditions [8]. The graphs in HR conditions are enriched with hyperedge variables, which are then replaced by graphs according to a hyperedge replacement system. Further enhancement to deal with subgraphs leads to HR conditions. This way, non-local properties can be expressed by hyperedge replacement. In fact, HR conditions are more expressive than monadic second-order formulas over graphs. The HR condition ∃(• • 1 2 + ) ? This work is supported by the German Research Foundation (DFG), grants GRK 1076/1 (Graduate School on Trustworthy Software Systems). with the hyperedge replacement system + ::= • • 1 2 |• • • 1 2 + is satis ed for all graphs with a path between two nodes 1 and 2. The following car platooning example after [9] may further illustrate the need for increased expressiveness. In order to save space and gas on highway lanes, cars travelling in the same direction drive in platoons, i.e. a tight row of cars with little distance in between. To ensure safety, the cars are partially controlled by a system adhering to a car platooning protocol. Each platoon has one and only one leader (designated by a small α) and an arbitrary number of followers. This property is representated by the following condition:

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Weakest Liberal Preconditions relative to HR∗ Graph Conditions

Graph conditions are very important for graph transformation systems and graph programs in a large variety of application areas. With HR∗ graph conditions, non-local graph properties like “there exists a path of arbitrary length” or “the graph is cycle-free” can be expressed. Together with graph programs, these conditions form a framework for writing programs over graphs, and specifying invaria...

متن کامل

On Correctness of Graph Programs Relative to Recursively Nested Conditions

We propose a new specification language for the proof-based approach to verification of graph programs by introducing μ-conditions as an alternative to existing formalisms which can express path properties. The contributions of this paper are the lifting of constructions from nested conditions to the new, more expressive conditions, and a proof calculus for partial correctness relative to μ-con...

متن کامل

Proving correctness of graph programs relative to recursively nested conditions

Graph programs provide a formal way to model the behaviour of a wide range of discrete systems. These programs are an extension of graph rewriting with control structures (sequence, nondeterministic choice and iteration). This thesis presents a theoretically founded formalism for specifying properties of graph programs and a proof-based approach to verifying the partial correctness of a graph p...

متن کامل

ENFORCe: A System for Ensuring Formal Correctness of High-level Programs

Graph programs allow a visual description of programs on graphs and graph-like structures. The correctness of a graph program with respect to a preand a postcondition can be shown in a classical way by constructing a weakest precondition of the program relative to the postcondition and checking whether the precondition implies the weakest precondition. ENFORCe is a currently developed system fo...

متن کامل

Development of correct graph transformation systems

Graph transformation has many application areas in computer science, such as software engineering or the design of concurrent and distributed systems. Being a visual modeling technique, graph transformation has the potential to play a decisive role in the development of increasingly larger and complex systems. However, the use of visual modeling techniques alone does not guarantee the correctne...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2010